package com.zhijian.medical.entity.po;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 监测模块
 *
 * @author Auto Generator
 * @date 2022-03-12 12:40:14
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Api(tags = "监测模块")
public class MonitorModule {
    /**
     * 主键id
     */
    @ApiModelProperty(value = "主键id", hidden = true)
    private Long id;

    /**
     * 序号
     */
    @ApiModelProperty(value = "序号", hidden = true)
    private Integer sort;

    /**
     * 名称
     */
    @ApiModelProperty("名称")
    private String name;

    /**
     * 模块id
     */
    @ApiModelProperty("模块id")
    @NotBlank(message = "模块id不能为空")
    private String moduleId;

    /**
     * 厂家id
     */
    @ApiModelProperty(value = "厂家id")
    @NotNull(message = "厂家id不能为空")
    private Long factoryId;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", hidden = true)
    private Date createTime;

    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间", hidden = true)
    private Date updateTime;
}